﻿@{Layout = null;}

@model MvcApplication1.Controllers.person
<script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>

<div id="person">
</div>

@using (Ajax.BeginForm("t311", new AjaxOptions { UpdateTargetId = "person" }))
{
    @Html.DropDownListFor(model => model.name, ViewData["name"] as List<SelectListItem>, new { Style = "" })
    @Html.HiddenFor(model => model.id, new { Style = "" });
    <input type="submit" value="submit" />
}
<script>
    $("#id").val("1111");

</script>
